<?php

require ('Publishable.php');

abstract class AbstractPublishableItem implements BlogPublishable{



/*public function __construct($date, $author) 
	{
		$this->date=$date;
		$this->author=$author;
	}*/

public function getDate() 
	{
		return $this->date;
	}

public function getAuthor() 
	{
		return $this->author;
	}

public function setDate($date)
	 {
		$this->date=$date;
	}

public function setAuthor($author)
	 {
		$this->author=$author;
	}

/*public function getPublishableDate()
	{
		if(is_numeric($this->date)){
			echo("c'est un integer\n");
	}else{
			echo("c'est pas un integer\n");
              }	
	}	
public function getAuthorBillet()
	{
		if(is_numeric($this->author)){
			echo("ce n'est pas un string");
	}else{
			echo("c'est un string");
		}
	}
	
public function __toString() {
		return "date : "."$this->date\n"."auteur: "."$this->author";

	}*/
}


?>
